package com.example.hotel.pojo;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.sql.Date;
import java.sql.Timestamp;

@Data
public class Order {
    private Integer id;
    @NotEmpty(message = "userid不能为空")
    private Integer userid;
    @NotEmpty(message = "roomid不能为空")
    private Integer roomid;
    private double cost;
    private Date indate;
    private Date outdate;
    private Timestamp createtime;
    private String status;

}
